package com.wwtech.epp.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：Android on 2017/10/12
 * 邮箱：365941593@qq.com
 * 描述：
 */

public class Report implements Parcelable{

    /**
     * content : 一
     * coordinateJob : 一
     * createTime : 2017-10-12 15:10:18
     * extrainfo : 一
     * projectId : 61
     * reportId : 3
     * title : 汇报一
     * userId : 10382
     */

    private String content;
    private String coordinateJob;
    private String createTime;
    private String extrainfo;
    private int projectId;
    private int reportId;
    private String title;
    private int userId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private String name;

    protected Report(Parcel in) {
        content = in.readString();
        coordinateJob = in.readString();
        createTime = in.readString();
        extrainfo = in.readString();
        projectId = in.readInt();
        reportId = in.readInt();
        title = in.readString();
        name = in.readString();
        userId = in.readInt();
    }

    public static final Creator<Report> CREATOR = new Creator<Report>() {
        @Override
        public Report createFromParcel(Parcel in) {
            return new Report(in);
        }

        @Override
        public Report[] newArray(int size) {
            return new Report[size];
        }
    };

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCoordinateJob() {
        return coordinateJob;
    }

    public void setCoordinateJob(String coordinateJob) {
        this.coordinateJob = coordinateJob;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getExtrainfo() {
        return extrainfo;
    }

    public void setExtrainfo(String extrainfo) {
        this.extrainfo = extrainfo;
    }

    public int getProjectId() {
        return projectId;
    }

    public void setProjectId(int projectId) {
        this.projectId = projectId;
    }

    public int getReportId() {
        return reportId;
    }

    public void setReportId(int reportId) {
        this.reportId = reportId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(content);
        dest.writeString(coordinateJob);
        dest.writeString(createTime);
        dest.writeString(extrainfo);
        dest.writeInt(projectId);
        dest.writeInt(reportId);
        dest.writeString(title);
        dest.writeString(name);
        dest.writeInt(userId);
    }
}
